package com.five.wisdomEat.controller;

import com.five.wisdomEat.entity.ResponseMessage;
import com.five.wisdomEat.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin
@RestController
@RequestMapping("/payment")
public class PaymentController {
    @Autowired
    private PaymentService service;

    @GetMapping("/getPaymentList")
    public ResponseMessage selectPaymentList(){
        return service.selectPaymentList();
    }
}
